import entryFactory from 'bpmn-js-properties-panel/lib/factory/EntryFactory';

import {
  is
} from 'bpmn-js/lib/util/ModelUtil';


export default function (translate, group, element) {
  // Only return an entry, if the currently selected
  // element is a start event.

  if (is(element, 'bpmn:StartEvent')) {
    group.entries.push(entryFactory.textField(translate, {
      id: 'spell',
      description: 'Apply a black magic spell',
      label: 'Spell',
      modelProperty: 'spell'
    }));

    group.entries.push(entryFactory.textField(translate, {
      id: 'title',
      description: '权限的标题',
      label: '标题',
      modelProperty: 'title'
    }));
  }
}